/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.core.preference;

import org.eclipse.jface.preference.IPreferenceStore;
/**
 * this class is used to store preference of validation level
 * @author Patrick Tessier
 *
 */
public class ValidationPreferenceConstants {
	/**constant to define validation level**/
	public final static String VALIDATION_LEVEL="validation_level";
	/** constant to define no validation*/
	public final static String NO_VALIDATION="no_validation";
	/** constant to define low validation**/
	public final static String VALIDATION_LOW_LEVEL="validation_low_level";
	/** constant to define hugh level of validation*/
	public final static String VALIDATION_HIGH_LEVEL="validation_high_level";

	/** 
	 * this method is used to store default preference od validation level.
	 * defaluf is low_level
	 * @param store
	 */
	public static void setDefaultPreferences(IPreferenceStore store) {
		// STEREOTYPE NAME DISPLAY default mode (first letter lowercase)
		store.setDefault(VALIDATION_LEVEL, VALIDATION_LOW_LEVEL);
	}

	/**
	 * return the value of no validation
	 * @return the p_STEREOTYPE_NAME_APPEARANCE
	 */
	public static String getNO_VALIDATION() {
		return NO_VALIDATION;
	}

	/**
	 * return the value of low validation
	 * @return the p_STEREOTYPE_NAME_DISPLAY_UML_CONFORM
	 */
	public static String getVALIDATION_LOW_LEVEL() {
		return VALIDATION_LOW_LEVEL;
	}

	/**
	 * return the value of high validation
	 * @return the p_STEREOTYPE_NAME_DISPLAY_USER_CONTROLLED
	 */
	public static String getVALIDATION_HIGH_LEVEL() {
		return VALIDATION_HIGH_LEVEL;
	}	
}
